package com.wzdigit.wms.raw.task;

import com.wzdigit.framework.exception.RestStatusException;
import com.wzdigit.wms.basic.mapper.core.inventory.GoodsLogMapper;
import com.wzdigit.wms.raw.constant.SyncTypeConstant;
import com.wzdigit.wms.raw.domain.dto.IfAsnHeaderDto;
import com.wzdigit.wms.raw.exception.SyncException;
import com.wzdigit.wms.raw.service.mid.IfAsnHeaderService;
import com.wzdigit.wms.raw.service.mid.SyncErrorDataService;
import lombok.extern.slf4j.Slf4j;
import net.dreamlu.mica.core.utils.CollectionUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**条码日志表定期删除，凌晨3点执行
    * @author shuaic
    * @date 2021/11/26 9:58
*/
@ConditionalOnExpression("${schedule.common.switch}")
@Component
@Slf4j
public class GoodsLogDelTask {

    @Autowired
    private GoodsLogMapper goodsLogMapper;

    public void  deleteByCreateTime(){
        goodsLogMapper.deleteByCreateTime();
    }
}
